<template>
    <div>
         <van-nav-bar title="首页" left-text="返回" left-arrow @click-left="onClickLeft" />
        <van-search v-model="value" shape="round" background="#4fc08d" placeholder="请输入搜索关键词" />
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

let routerApi=useRouter();

let onClickLeft=()=>{
    routerApi.push('/')
}

</script>

<style lang="scss" scoped></style>